<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .switch-wrapper {
            width: 80px;
            height: 40px;
            padding: 2px;
            box-sizing: border-box;
            border-radius: 99px;
            background: gray;
        }

        .switch-item {
            width: 36px;
            height: 36px;
            border-radius: 99px;
            background: white;
        }
    </style>

</head>
<body>

<div class="switch-wrapper">
    <div class="switch-item"></div>
</div>

<script>

    const html = document.querySelector('[index="1"]').innerHTML;

    console.log(html);


</script>

</body>
</html>